﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShowAllGroupAccounts.ascx.cs" Inherits="WebControl_ShowAllGroupAccounts" %>

<h2>GroupAccounts Settings</h2> 

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate> 
    <table id="rounded-corner" summary="2007 Major IT Companies' Profit">
        <tr>
        	<th scope="col" class="rounded-company"></th>
            <th scope="col" class="rounded">NameGroup</th>
            <th scope="col" class="rounded">Description</th>
        </tr>

<asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="IdGroup" DataKeyNames="IdGroup">
    <ItemTemplate>
        <tr>
        	<td><input type="checkbox" name="IdGroup" value="<%# Eval("IdGroup") %>"/></td>
            <td><%# Eval("NameGroup")%></td>
            <td><%# Eval("Description")%></td>
    
            <td><a href="UpdateCustomer_Admin.aspx?idcus=<%# Eval("IdGroup") %>"><img src="../Images/user_edit.png" alt="" title="" border="0" /></a></td>
            <td><a href="DeleteCustomer.ascx?idcustom=<%# Eval("IdGroup") %>" class="ask"><img src="../Images/trash.png" alt="" title="" border="0" /></a></td>
        </tr>
    </ItemTemplate>
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" ID="IdGroup"></asp:PlaceHolder>
    </LayoutTemplate>
</asp:ListView> 
</table>
	 <a href="#" class="bt_green"><span class="bt_green_lft"></span><strong>Add new item</strong><span class="bt_green_r"></span></a>
     <a href="#" class="bt_blue"><span class="bt_blue_lft"></span><strong>View all items from category</strong><span class="bt_blue_r"></span></a>
     <a href="#" class="bt_red"><span class="bt_red_lft"></span><strong>Delete items</strong><span class="bt_red_r"></span></a> 
     

     <div class="pagination">
         <asp:DataPager ID="DataPagerForAlbums" runat="server" PagedControlID="ListView1" PageSize="5">
                <Fields>
                    <asp:NextPreviousPagerField ShowFirstPageButton="True" FirstPageText="&laquo prev" ShowNextPageButton="False"  ShowPreviousPageButton="false" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ShowLastPageButton="True" LastPageText="&raquo next" ShowPreviousPageButton="False"  ShowNextPageButton="false" />
                </Fields>
         </asp:DataPager>
     </div>
        
        </p>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="DataPagerForAlbums" />
    </Triggers>
</asp:UpdatePanel> 

